package controllers;

import java.util.Collection;
import java.util.LinkedList;


public class PermissionList extends LinkedList<Permission>{
	public PermissionList(Collection<Permission> permissions){
		super(permissions);
	}
	public PermissionList(){
		super(new LinkedList<Permission>());
	}
	public boolean can(Permission permission){
		for (Permission perm:this){
			if (permission==perm)return true;
		}
		return false;
	}
	public boolean can(PermissionList permissions){
		for(Permission prm:permissions){
			if(this.can(prm))return true;
		}
		return false;
	}
	private static final long serialVersionUID = 1L;
}
